package com.lims.algorithm.useful;

/**
 * <功能简述>
 *
 * @author: lims
 * @create: 2019-08-13 16:55
 */
public class MyExceptionTest {
    public static void main(String[] args) {
        Exceptionbean exceptionbean = new Exceptionbean("自定义的异常");
        try {
            throw new MyException(exceptionbean);
        } catch (MyException e) {
            Exceptionbean exceptionbean1 = e.getExceptionbean();
            System.out.println(exceptionbean1.getMsg());
        }
    }
}
